home *** CD-ROM | disk | FTP | other *** search
/ Power Hacker 2003 / Power_Hacker_2003.iso / Exploit and vulnerability / w00w00 / sectools / SRS / client / configure.in < prev    next >
Encoding:
Text File  |  2000-01-12  |  1.8 KB  |  100 lines

  1. # Process this file with autoconf to produce a configure script
  2. AC_INIT(src/auth.c)
  3. AC_CONFIG_HEADER(config.h)
  4.  
  5. # Make sure they have a fairly recent version
  6. AC_PREREQ(2.10)
  7.  
  8. AC_CONFIG_AUX_DIR(support)
  9.  
  10. PACKAGE=client
  11. VERSION=1.0
  12. AC_SUBST(PACKAGE)
  13. AC_SUBST(VERSION)
  14.  
  15. # Do stuff with OS
  16. AC_CANONICAL_HOST
  17.  
  18. # Setup some definitions based on the OS
  19. case "$host_os" in
  20. sun*) LDEFS=-DSUN;;
  21. solaris*) LDEFS=-DSUN;;
  22. svr4*) LDEFS=-DSUN;;
  23. sysv*) LDEFS=-DSUN;;
  24. linux*) LDEFS=-DLINUX;;
  25. *bsd*) LDEFS=-DBSD;;
  26. sco*) LDEFS=-DSCO;;
  27. osf*) LDEFS=-DOSF;;
  28. aix*) LDEFS=-DAIX;;
  29. hpux*) LDEFS=-DHPUX;;
  30. dgux*) LDEFS=-DDGUX;;
  31. qnx*) LDEFS=-DQNX;;
  32. next*) LDEFS=-DNEXT;;
  33. irix*) LDEFS=-DIRIX;;
  34. *) LDEFS=-DDEFOS;;
  35. esac
  36.  
  37. AC_SUBST(LDEFS)
  38.  
  39. bindir=../bin
  40. AC_SUBST(bindir)
  41.  
  42. AC_ARG_PROGRAM
  43.  
  44. # Checks for programs.
  45.  
  46. AC_PROG_CC
  47. AC_PROG_INSTALL
  48. AC_PROG_MAKE_SET
  49. AC_PROG_LN_S
  50.  
  51. # Check the systems
  52. AC_AIX
  53. AC_ISC_POSIX
  54. AC_MINIX
  55.  
  56. # Checks for libraries.
  57. AC_HAVE_LIBRARY(nsl)
  58. AC_HAVE_LIBRARY(socket)
  59.  
  60. AC_HAVE_LIBRARY(crypto)
  61. AC_HAVE_LIBRARY(ssl)
  62.  
  63. # Probably not needed...
  64. # AC_CHECK_LIBRARY(elf, main)
  65.  
  66. # Checks for header files.
  67. AC_CHECK_HEADERS(asm/page.h compat.h db.h fcntl.h features.h getopt.h  \
  68. kvm.h limits.h malloc.h memory.h paths.h posix_opt.h sys/select.h      \
  69. sys/shm.h sys/stat.h sys/strlog.h sys/stropts.h sys/time.h sys/times.h \
  70. syslog.h unistd.h utime.h)
  71.  
  72. AC_HEADER_STDC
  73. AC_HEADER_TIME
  74. AC_HEADER_DIRENT
  75. AC_HEADER_SYS_WAIT
  76.  
  77. # Checks for typedefs, structures, and compiler characteristics.
  78. AC_C_CONST
  79.  
  80. AC_SYS_RESTARTABLE_SYSCALLS
  81.  
  82. AC_STRUCT_TM
  83. AC_STRUCT_TIMEZONE
  84.  
  85. AC_TYPE_UID_T
  86. AC_TYPE_PID_T
  87. AC_TYPE_SIZE_T
  88.  
  89. AC_TYPE_SIGNAL
  90.  
  91. # Checks for library functions.
  92. AC_FUNC_MMAP
  93. AC_FUNC_VPRINTF
  94.  
  95. AC_CHECK_FUNCS(getcwd memcpy mkdir select setreuid shmat shmctl shmdt \
  96. shmget socket strerror strstr)
  97.  
  98. AC_OUTPUT(Makefile src/Makefile,
  99. [test -z "$CONFIG_HEADERS" || date > stamp-h])
  100.